package com.examination.system.administrato;


import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

@FunctionalInterface
interface  Foo{
  //  public void  sayHello();
    public int add(int x,int y);

      default int mul(int x,int y){
        return x * y;
    }
}
/**
 * @author 寇淇芮
 * @Date 2019/10/12 22:58
 */
public class SaleTicketDemo02 {
    public static void main(String[] args) {
        Foo foo = (int x ,int y)->{ System.out.println("--------------新东西"+x+y);return  x+y;};
        foo.add(5,9);
    }
}
